.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 75%;
  overflow-y: none;
}

.messagesContainer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 20px;
  padding: 20px;
  height: 70vh;
  overflow-y: auto;
  overflow-x: hidden;
  width: 50vw;
  background-color: #f5f5f5;
  margin: 20px auto;
  border-radius: 10px;
  box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1);

  /* 自定义滚动条样式 */
  scrollbar-width: thin;
  scrollbar-color: #c1c1c1 #f1f1f1;

  &::-webkit-scrollbar {
    width: 8px;
  }

  &::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
  }

  &::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
    transition: background 0.3s ease;

    &:hover {
      background: #a8a8a8;
    }
  }

  &::-webkit-scrollbar-thumb:active {
    background: #888;
  }
}

.messageAICoze {
  background-color: #e3f2fd;
  border-radius: 35px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 15px 20px;
  margin: 5px 0;
  max-width: 80%;
  align-self: flex-start;
  border-left: 4px solid #2196f3;

  p {
    margin: 0;
    color: #333;
    line-height: 1.5;
  }
}

.messageUser {
  background-color: #f3e5f5;
  border-radius: 35px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 15px 20px;
  margin: 5px 0;
  max-width: 80%;
  align-self: flex-end;
  border-right: 4px solid #9c27b0;

  p {
    margin: 0;
    color: #333;
    line-height: 1.5;
  }
}

.messageFile {
  background-color: #e3f2fd;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 15px 20px;
  margin: 5px 0;

  align-self: flex-end;
  cursor: pointer;
  border-left: 4px solid #2196f3;
  display: flex;
  align-items: center;
  gap: 10px;

  p {
    margin: 0;
    color: #333;
    line-height: 1.5;
    font-weight: 500;
  }

  &::before {
    content: "📄";
    font-size: 16px;
  }
}

.messageImage {
}

.nameInput {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 50vw;
  margin: 20px auto;
}

.inputArea {
  display: flex;
  align-items: center;
  gap: 15px;
  width: 50vw;
  margin: 20px auto;
}

.uploadObs {
  flex-shrink: 0;
}

.nameInput {
  flex: 1;
}
